package pattern.abstractfactory.demo1;

public class Exec {
    public static void main(String[] args) {
        AbstractFactory factory = FactoryProducer.getFactory("color");
        Color color = factory.getColor("red");
        color.fill();

        AbstractFactory factory1 = FactoryProducer.getFactory("shape");
        Shape shape = factory1.getShape("circle");
        shape.draw();
        
    }

}
